<script>
	import Vue from 'vue'
	import Cfg from '@/common/config.js'
	import {android_all_update} from '@/common/upgrade.js'
	export default {
		onLaunch: function() {
			/** 检测升级 */
		
			// #ifdef APP-PLUS  
			plus.runtime.getProperty(plus.runtime.appid, function(widgetInfo) {  
				console.log(widgetInfo.version,widgetInfo.name)
			   uni.request({  
			       url: Cfg.Setting.root+'update',  
			       data: {  
			           version: widgetInfo.version,  
			           name: widgetInfo.name  
			       },  
			       success: (result) => {  
			           var data = result.data.data;  
					   console.log(data.wgtUrl)
			           if (data.wgtUrl) {  
			               uni.downloadFile({  
			                   url: data.wgtUrl,  
			                   success: (downloadResult) => {  
			                       if (downloadResult.statusCode === 200) {  
									   console.log(downloadResult)
			                           plus.runtime.install(downloadResult.tempFilePath, {  
			                               force: false  
			                           }, function() {  
			                               console.log('install success...');  
			                               plus.runtime.restart();  
			                           }, function(e) {  
										    console.log(e)
			                               console.error('install fail...');  
			                           });  
			                       }  
			                   }  
			               });  
			           }else if(data.zbUrl){
						   android_all_update(data.zbUrl)
					   }
			       }  
			   });  
			});  
			// #endif 
			
			
			
			
			uni.getSystemInfo({
				success: function(e) {
					// #ifndef MP
					Vue.prototype.StatusBar = e.statusBarHeight;
					if (e.platform == 'android') {
						Vue.prototype.CustomBar = e.statusBarHeight + 50;
					} else {
						Vue.prototype.CustomBar = e.statusBarHeight + 45;
					};
					// #endif
			
					// #ifdef MP-WEIXIN
					Vue.prototype.StatusBar = e.statusBarHeight;
					let custom = wx.getMenuButtonBoundingClientRect();
					Vue.prototype.Custom = custom;
					Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
					// #endif		
			
					// #ifdef MP-ALIPAY
					Vue.prototype.StatusBar = e.statusBarHeight;
					Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
					// #endif
				}
			})
			console.log('App Launch');
			
			// #ifdef APP-PLUS
				plus.screen.lockOrientation('portrait-primary');
			// #endif
		},
		onShow: function() {
			//console.log('App Show')
		},
		onHide: function() {
			//console.log('App Hide')
		}
	}
</script>

<style lang="scss">
@import 'themes/main.css';
@import 'themes/icon.css';
/* #ifdef H5 */
.system-header {
	background-color: #4d726f; /* 自定义颜色 */
}
/* #endif */
.status_bar01 {
	height: var(--status-bar-height);
	width: 100%;
	background-color: #4d726f;
	position: fixed;
	top: 0;
	z-index: 9999;
}
.status_bar02 {
	height: var(--status-bar-height);
	width: 100%;
	background-color: #4d726f;
	position: fixed;
	top: 0;
	z-index: 9999;
}
.status_bar03 {
	background: #2f2b3b;
	width: 100%;
	background-color: #4d726f;
	position: fixed;
	top: 0;
	z-index: 9999;
}
.clear_box09 {
	height: calc(100px + var(--status-bar-height));
}
.status_bar04 {
	padding-top: calc(10px + var(--status-bar-height));
}
.clear_box02 {
	height: calc(25vw + var(--status-bar-height));
}
.clear_box01 {
	height: calc(50px + var(--status-bar-height));
}
.confirm {
	width: 92%;
	height: 12vw;
	border-radius: 12vw;
	line-height: 12vw;
	text-align: center;
	background: #4d726f;
	color: #fff;
	font-size: 4vw;
	margin: 0 auto;
	margin-top: 15vw;
}
.confirm02 {
	width: 92%;
	height: 12vw;
	border-radius: 12vw;
	line-height: 12vw;
	text-align: center;
	background: #4d726f;
	color: #fff;
	font-size: 4vw;
	margin: 0 auto;
	margin-top: 15vw;
}
.confirm06 {
	width: 92%;
	height: 12vw;
	border-radius: 12vw;
	line-height: 12vw;
	text-align: center;
	background: #4d726f;
	color: #fff;
	font-size: 4vw;
	position: fixed;
	bottom: 10vw;
	left: calc(50% - 48%);
}

button

button::after {
  border: 0; 
}
@keyframes show {
	0% {
		transform: translateY(-50px);
	}

	60% {
		transform: translateY(40upx);
	}

	100% {
		transform: translateY(0px);
	}
}

@-webkit-keyframes show {
	0% {
		transform: translateY(-50px);
	}

	60% {
		transform: translateY(40upx);
	}

	100% {
		transform: translateY(0px);
	}
}


*{
	box-sizing: border-box;
	font-family: PingFang SC;
}
.pageItem{
	width: 100%;
	position: relative;
	z-index: 1;
}
.contentItem{
	width: 100%;
	position: relative;
}

page {
		font-family: allfont;
	}

	.uni_list_go {
		background-color: #e8e8e8 !important;
	}

	page {
		/*开启底部导航时,下面开启*/
		padding-bottom: 120upx !important;
		background-color: #f8f8f8;
	}

	.status_bar02 {
		height: var(--status-bar-height);
		width: 100%;
		background-color: #bf926b;
		color: #333;
	}

	.status_bar {
		padding-top: calc(0vw + var(--status-bar-height)) !important;
	}

	.clear_box {
		height: calc(13.5vw + var(--status-bar-height));
	}

	.clear_box01 {
		height: calc(19.5vw + var(--status-bar-height));
	}

	.clear_box02 {
		height: 10.5vw;
	}

	.clear_box03 {
		height: calc(18vw + var(--status-bar-height));
	}

	.clear_box04 {
		height: calc(28vw + var(--status-bar-height));
	}

	image {
		height: auto;
	}

	.header {
		width: 100%;
		display: flex;
		position: fixed;
		top: 0;
		z-index: 9999999;
		background-color: #4d726f;
	}

	.header .text {
		width: 100%;
		position: absolute;
		left: 0;
		top: var(--status-bar-height);
		z-index: -1;
		text-align: center;
		line-height: 13.5vw;
		font-size: 4.5vw;
		color: #333;
		font-weight: bold;
		background-color: #fff;
	}

	.header .back {
		font-size: 5vw;
		height: 13.5vw;
		line-height: 13.5vw;
		color: #1d1f24;
		width: 14.5vw;
		text-align: center;
	}

	.header .menu {
		font-size: 3.5vw;
		line-height: 8vw;
		height: 8vw;
		color: #fff;
		padding: 0 3vw;
		color: #333;
		background-color: #fff;
		margin: 2.75vw 3vw;
		border-radius: 8vw;
	}

	.header .code {
		width: 6vw;
		position: absolute;
		right: 4%;
		top: 3.8vw;
		
	}
	
	.header .code image{
		width: 100%;
	}

	.header .input {
		height: 10.5vw;
		border-radius: 10.5vw;
		width: 92%;
		margin: 0 auto;
		border: 1px solid #e8e8e8;
		border-radius: 10.5vw;
		display: flex;
		justify-content: center;
		margin-top: 3vw;
	}

	.header .input .icon {
		font-size: 4vw;
		color: #999;
		line-height: 10.5vw;
		margin-right: 1.5vw;
	}

	.header .input input {
		font-size: 3.5vw;
		color: #333;
		line-height: 10.5vw;
		height: 10.5vw;
	}

	/* #ifdef MP-WEIXIN */
	.header .set {
		margin-right: 21vw;
	}

	.header .icon {
		margin-right: 22vw !important;
	}

	.header .code {
		margin-right: 21vw !important;
	}

	/* #endif */

	.confirm {
		width: 92%;
		height: 13vw;
		border-radius: 13vw;
		line-height: 13vw;
		text-align: center;
		background-color: #4d726f;
		color: #fff;
		font-size: 4vw;
		position: fixed;
		bottom: 3vw;
		left: calc(50% - 46%);
		z-index: 999999;
		font-weight: bold;
	}

	.confirm02 {
		width: 92%;
		height: 13vw;
		border-radius: 13vw;
		line-height: 13vw;
		text-align: center;
		background-color: #4d726f;
		color: #fff;
		font-size: 4vw;
		margin: 0 auto;
		margin-top: 13vw;
		font-weight: bold;
	}

	.gray {
		-webkit-filter: grayscale(100%);
		-moz-filter: grayscale(100%);
		-ms-filter: grayscale(100%);
		-o-filter: grayscale(100%);
		filter: grayscale(100%);
		filter: gray;
	}

@font-face {
  font-family: 'iconfont3';  /* Project id 4096256 */
  src: url('//at.alicdn.com/t/c/font_4096256_fe27blsggfg.woff2?t=1700188703478') format('woff2'),
       url('//at.alicdn.com/t/c/font_4096256_fe27blsggfg.woff?t=1700188703478') format('woff'),
       url('//at.alicdn.com/t/c/font_4096256_fe27blsggfg.ttf?t=1700188703478') format('truetype');
}
.iconfont3 {
  font-family: "iconfont3" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


.iconfont22 {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@font-face {
  font-family: "iconfont"; /* Project id 3287314 */
  src: url('./static/font/iconfont.woff2?t=1652166139107') format('woff2'),
       url('./static/font/iconfont.woff?t=1652166139107') format('woff'),
       url('./static/font/iconfont.ttf?t=1652166139107') format('truetype');
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-renwuguanli:before {
  content: "\e6df";
}

.icon-fuzhi:before {
  content: "\e631";
}

.icon-dianzan:before {
  content: "\e65f";
}

.icon-huobi:before {
  content: "\e699";
}

.icon-jinbi2:before {
  content: "\e6ee";
}

.icon-jinbi1:before {
  content: "\e641";
}

.icon-xuanzhong:before {
  content: "\e626";
}

.icon-bianji1:before {
  content: "\e602";
}

.icon-guanli1:before {
  content: "\e606";
}

.icon-guanli:before {
  content: "\e640";
}

.icon-qiandao:before {
  content: "\e60f";
}

.icon-dianhua:before {
  content: "\e797";
}

.icon-shezhi:before {
  content: "\e650";
}

.icon-yue:before {
  content: "\e6b7";
}

.icon-jifen:before {
  content: "\e7cc";
}

.icon-icon-newspaper4:before {
  content: "\e8b4";
}

.icon-xiaoxi:before {
  content: "\e619";
}

.icon-guanbi:before {
  content: "\e603";
}

.icon-kefu1:before {
  content: "\e621";
}

.icon-aixin:before {
  content: "\e8ab";
}

.icon-aixin1:before {
  content: "\e8c3";
}

.icon-bianji:before {
  content: "\e604";
}

.icon-dizhi:before {
  content: "\e622";
}

.icon-zhifubao:before {
  content: "\e68a";
}

.icon-weixin:before {
  content: "\e601";
}

.icon-weixin1:before {
  content: "\e607";
}

.icon-jia:before {
  content: "\e74a";
}

.icon-dagou:before {
  content: "\e61f";
}

.icon-jianshao:before {
  content: "\e8b1";
}

.icon-shanchu:before {
  content: "\e657";
}

.icon-yaoqingma:before {
  content: "\e647";
}

.icon-yanzhengma:before {
  content: "\e63d";
}

.icon-mima:before {
  content: "\e62c";
}

.icon-shouji:before {
  content: "\e8c6";
}

.icon-xiangzuo-copy:before {
  content: "\e8c8";
}

.icon-xingxing:before {
  content: "\e62b";
}

.icon-xiangyou1:before {
  content: "\e775";
}

.icon-xiangxia-copy:before {
  content: "\e8c7";
}

.icon-24gf-bag:before {
  content: "\e87f";
}

.icon-xiangyou3:before {
  content: "\e778";
}

.icon-31gouwuche:before {
  content: "\e600";
}

.icon-sousuo:before {
  content: "\e605";
}

.icon-gouwuche:before {
  content: "\e73d";
}

.icon-home:before {
  content: "\e639";
}

.icon-sort:before {
  content: "\e65e";
}

.icon-wode:before {
  content: "\e60e";
}

</style>
